Load icons on-demand
authorBenjamin Otte <otte@gnome.org>
Tue, 30 Jun 2009 21:33:29 +0000 (23:33 +0200)
committerBenjamin Otte <otte@gnome.org>
Thu, 15 Oct 2009 20:00:08 +0000 (22:00 +0200)
commit4a1ff32325fd2ffc80ec3d9612f4e2a846261abc
treedef89c31d40c0a39e143f8c28e9d119c8ff2b487
parent105e6fbc11dbc37a6b863b766b878cad1c63b969
Load icons on-demand

Because loading icons takes a noticable performance, this code loads the
pixbuf on demand and only loads icons for rows that are visible. There
is a few caveats to this:
- The pixbuf cell renderer must report the proer size even if the icon
  is not yet loaded. This is achieved by setting a fixed size.
- On theme changes the cahced pixbufs and the cell renderer must be
  updated to conform to the new theme.
gtk/gtkfilechooserdefault.c